{extend name="wmcommon/menu" /}
{block name="selfcss"}
<link rel="stylesheet" href="__STATIC__/wm_index/css/wm/courseDetails.css?201908">
<link rel="stylesheet" href="__STATIC__/wm_index/css/wm/idangerous.swiper.css">
{/block}

{block name='title'}{$db.title}——北京名校立志主题研学 _ 精品研学课程_研学旅行课程大全{/block}
{block name='keywords'}研学旅行,心得体会,活动方案,研学实践教育,营地教育,冬令营,夏令营{/block}
{block name='description'}未名研学北京高校立志主题研学，立足于北京大学特色资源，通过探究式学习与体验教育相结合，让青少年在实践学习中深刻的领悟与思考，从内心{/block}


{block name='maincontent'}
<div class="module">
    <!-- 面包屑导航 -->
    <p class="crumbs"><a href="index.html">未名研学</a>&nbsp;&nbsp;<a href="/item/{$pid}.html">研学课程</a> > </p>
    <div class="module_box">
        <div class="module_box_left">
            <!-- 图片轮播 -->
            <div class="show_image image"><img src="{$db.slider[0]}"></div>
            <div class="swiper_box">
                <p class="prev img"><img src="__STATIC__/wm_index/images/wm/icon_arrow_left2.png"></p>
                <p class="next img"><img src="__STATIC__/wm_index/images/wm/icon_arrow_right2.png"></p>
                <div class="swiper-container" id="album">
                    <div class="swiper-wrapper">
                        {foreach $db.slider as $key=>$vo}
                        <div class="swiper-slide">
                            <p class="image"><img src="{$vo}"></p>
                        </div>
                        {/foreach}
                    </div>
                </div>
            </div>
            <div class="similar">
                <div class="title">
                    <p class="left">
                        <span>推荐课程</span>
                    </p>
                    <p class="right">
                        <a href="/item/{$pid}.html">更多</a>
                    </p>
                </div>
                <div class="list">
                    {foreach $recommend as $key=>$vo}
                    <a class="cell" href="/lesson/{$vo.id}.html">
                        <p class="name a_row">{$vo.title}——西安历史文化主题研学</p>
                        <div class="box">
                            <p class="image"><img src="{$vo.cover}" alt=""></p>
                            <div class="info">
                                {foreach $vo.cover_desc as $k =>$v}
                                <p>{$v}</p>
                                {/foreach}
                            </div>
                        </div>
                    </a>
                    {/foreach}
                </div>
            </div>
        </div>
        <div class="module_box_right">
            <h1 class="more_row">{$db.title}</h1>
            <div class="recommend">
                <p class="image"><img src="{$db.slider[0]}" alt=""></p>
                <p class="txt">课程亮点：☆ {$db.keywords} </p>
            </div>
            <div class="flex">
                <p class="no">课程编号：PRC64</p>
                <p>人浏览</p>
                <!--<p>938人已报名</p>
                <p class="btn">
                    <img src="http://www.wmyanxue.com/statics/images/wm/icon_small_icons4.png" alt="">
                    <span>收藏</span>
                </p>
                <p class="btn">
                    <img src="http://www.wmyanxue.com/statics/images/wm/icon_small_icons5.png" alt="">
                    <span>分享</span>
                </p>
                <p class="btn">
                    <img src="http://www.wmyanxue.com/statics/images/wm/icon_small_icons6.png" alt="">
                    <span>手机浏览</span>
                </p>-->
            </div>
            <div class="address_and_style">
                <p class="time">{$db.time_name}</p>
                <div class="cell">
                    <span class="tips">课程类型：</span>
                    <p>国内研学</p>
                </div>
                <div class="cell">
                    <span class="tips">课程特色：</span>
                    <p>自然教育</p>
                </div>
            </div>
            <div class="age">

            </div>
            <!--<div class="age">
                <span class="tips">课程类型：</span>
                <p>国内研学</p>
            </div>-->
            <div class="grade">
                <span class="tips">学段：</span>
                <div class="box">
                    {foreach $db.classList as $k => $v}
                    <span class="btn {:isset($v.is_true)&&$v.is_true ? 'on' : ''}">{:mb_substr($v.name,0,5,'utf-8')}</span>
                    {/foreach}
                </div>
            </div>
            <div class="scheduling" style="display: none">
                <span class="tips">排期：</span>
                <div class="time_box">
                    <p>2019年6月30日-2019年7月5日</p>
                </div>
            </div>
            <!-- 雷达图 -->
            <div id="chart"></div>
            <div class="btns">
                <a class="btn bg_red" href="http://p.qiao.baidu.com/cps/chat?siteId=13795960&userId=27832390">
                    <span>提交报名</span>
                </a>
                <a class="btn bg_blue" href="http://p.qiao.baidu.com/cps/chat?siteId=13794781&userId=27832390">
                    <span>报名咨询</span>
                </a>
                <a href="http://www.wmyanxue.com/about/fwbz.html">
                    <span class="contact">服务保障</span>
                </a>
            </div>
            <div class="pay_way">
                <span class="tips">付款方式：</span>
                <ul>
                    <li>
                        <img src="__STATIC__/wm_index/images/wm/icon_pay_weixin.png" alt="">
                        <span>微信</span>
                    </li>
                    <li>
                        <img src="__STATIC__/wm_index/images/wm/icon_pay_zhifubao.png" alt="">
                        <span>支付宝</span>
                    </li>
                    <li>
                        <img src="__STATIC__/wm_index/images/wm/icon_pay_bankcard.png" alt="">
                        <span>信用卡</span>
                    </li>
                </ul>
            </div>
            <div class="discount">
                <p class="title">优惠活动：</p>
                <div class="txt">
                    <p>1. 关注微信官网，小程序下单减50</p>
                </div>
            </div>
        </div>
    </div>
</div>
<!--  -->
<div class="layout">
    <div class="layout_left">
        <div class="content">
            <div class="anchor">
                <a id="1" href="javascript:;">课程介绍</a>
                <a id="2" href="javascript:;">课程收获</a>
                <a id="3" href="javascript:;">课程特色</a>
                <a id="4" href="javascript:;">课程内容</a>
                <a id="5" href="javascript:;">服务标准</a>
                <a id="6" href="javascript:;">安全保障</a>
            </div>
            <!-- 课程介绍 -->
            {foreach $lesson_content as $key=>$vo}
            {if $vo.type != "kechenganpai" }
            <p id="anchor{$key+1}"></p>
            <h2>
                <img src="__STATIC__/wm_index/images/wm/bg_title_red.png" alt="">
                <span>{$vo.title}</span>
            </h2>
            <div class="introduce">
                {if !empty($vo.content)&&is_array($vo.content)}
                {foreach $vo.content as $k=>$v}
                <p>{$v.content|raw}</p>
                {/foreach}
                {/if}
            </div>
            {else/}
            <p id="anchor{$key+1}"></p>
            <h2>
                <img src="__STATIC__/wm_index/images/wm/bg_title_red.png" alt="">
                <span>课程内容</span>
            </h2>
            <div class="course_content_box">
                <div class="swiper-container" id="course_content">
                    <div class="swiper-wrapper">
                        <!-- start -->
                        {foreach $vo.content as $k=>$v}
                        <div class="swiper-slide" style="width: 100%">
                            <p class="day">{$v.title}</p>
                            <ul>
                                {if is_array($v.content)}
                                {foreach $v.content as $k_k=>$v_v}
                                <li>
                                    <span class="tips">{$v_v.title}</span>
                                    <img class="icon" src="__STATIC__/wm_index/images/wm/icon_flag.png" alt="">

                                    <div class="info">
                                        <div class="txt">
                                            {foreach $v_v.content as $k_k_k=>$v_v_v}
                                            {$v_v_v.content}<br/>
                                            {/foreach}
                                        </div>
                                        {foreach $v_v.content as $k_k_k=>$v_v_v}
                                        {if !empty($v_v_v.thumb)}
                                        <div class="images">
                                            <p class="image"><img src="{$v_v_v.thumb}" alt=""></p>
                                        </div>
                                        {/if}
                                        {/foreach}
                                    </div>

                                </li>
                                {/foreach}
                                {/if}
                            </ul>
                        </div>
                        {/foreach}
                    </div>
                    <!-- <div class="swiper-scrollbar"></div> -->
                </div>
                <ul class="times_list">
                    {foreach $vo.content as $k=>$v}
                    <li>{$v.title}</li>
                    {/foreach}
                </ul>
            </div>
            {/if}
            {/foreach}
            <!--<p id="anchor3"></p>
            <h2>
                <img src="http://www.wmyanxue.com/statics/images/wm/bg_title_red.png" alt="">
                <span>服务保障</span>
            </h2>
            <p style="text-indent:2em;"><a href="http://www.wmyanxue.com/about/fwbz.html" style="text-decoration：underline; color: #374253;font-size:16px;text-indent:2em;">详细情况请点击</a></p>
            <p id="anchor4"></p>
            <h2>
                <img src="http://www.wmyanxue.com/statics/images/wm/bg_title_red.png" alt="">
                <span>查询名额</span>
            </h2>
            <p style="color: #374253;font-size:16px;text-indent:2em;">假期接待流量大，预约课程名额有限，及时预约查询，我们将在第一时间将查询结果反馈给您！</p>-->
            <form method="post" action="/apply6.html" name="myform" id="myform">
                <table class="table_form" width="100%" cellspacing="0" border="0">
                    <tbody>
                    <tr><th width="80">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</th><td><input type="text" name="info[name]" id="name" size="50" value=""  class="input-text"  > </td></tr>
                    <tr><th width="80">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话</th><td><input type='text' name='info[tel]' id='tel' value='' size=''  class='input-text'  >&nbsp;&nbsp;<font color="red">*</font></td></tr>
                    <tr><th width="80">单位名称</th><td><input type="text" name="info[company]" id="company" size="50" value=""  class="input-text"  ></td></tr>
                    <!--<tr><th width="80">需&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;求</th><td><select name='info[require]' id='require'><option value="1" >课程报名</option><option value="2" >营地开发</option><option value="3" >导师培训</option><option value="4" >商务合作</option><option value="5" selected>其他</option></select>  </td>    </tr>-->
                    <tr><th width="80">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</th><td><textarea name='info[more]' id='more' style='width:100%;height:72px;'   ></textarea></td></tr>
                    <tr><td></td><td>
                        <div class="submit ib"><input type="submit" name="dosubmit" id="dosubmit" value=" 预约查询 "></div> </td></tr>
                    </tbody>
                </table>
            </form>
        </div>
        <div class="albums_box">
            <div class="title">
                <h3>课程剪影</h3>
                <a class="more" href="http://www.wmyanxue.com/album.html">更多&nbsp;&#62;</a>
            </div>
            <ul class="list">
            </ul>
        </div>
    </div>
    <div class="layout_right">
        <div class="tel_box">
            <p class="txt">全国研学教育报名咨询热线</p>
            <p class="tel">400-008-1926</p>
        </div>
        <!-- mark -->
        <div class="marks">
            <a class="mark" href="http://www.wmyanxue.com/products/service.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark1.jpg" alt="研学实践教育解决方案"></p>
                <p class="txt a_row">研学实践教育解决方案</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/course/p1/">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark2.jpg" alt="研学课程"></p>
                <p class="txt a_row">研学课程</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/products/service.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark3.jpg" alt="营地开发"></p>
                <p class="txt a_row">营地开发</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/products/college.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark4.jpg" alt="研学实践导师培训"></p>
                <p class="txt a_row">导师培训</p>
            </a>
            <a class="mark" href="http://www.wmyanxue.com/yixiang.html">
                <p class="image"><img src="__STATIC__/wm_index/images/wm/bg_mark5.jpg" alt="提交意向"></p>
                <p class="txt a_row">提交意向</p>
            </a>
        </div>
        <!--  -->

        <!--  -->
        <div class="hot_box">
            <div class="title">
                <p class="left">
                    <img src="__STATIC__/wm_index/images/wm/icon_hot.png" alt="">
                    <span>热门课程</span>
                </p>
                <a class="more" href="<?php echo url('/item/12')?>">更多&#62;&#62;</a>
            </div>
            <div class="list">
                <?php if(!empty($aryRecommend)){foreach($aryRecommend as $lesson){?>
                <a class="cell" href="<?php echo url('/lesson',array('id'=>$lesson['id']))?>">
                <p class="image"><img src="<?php echo $lesson['cover']?>" alt="<?php echo $lesson['title']?>"></p>
                <div class="info">
                    <p class="name two_row"><?php echo $lesson["title"]?></p>
                    <div class="flex">
                        <p class="marks_box">
                            <?php if(!empty($lesson['cover_desc'])){?>

                            <span class="mark"><?php echo json_decode($lesson['cover_desc'],true)[0] ?: '';?></span>
                            <?php }?>

                        </p>
                        <!--<span class="time"><?php //echo $lesson["cover_desc"]?></span>-->
                    </div>
                </div>
                </a>
                <?php }}?>

            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/wm_index/js/wm/echarts.min.js"></script>
<script src="__STATIC__/wm_index/js/wm/idangerous.swiper.js"></script>
<script>
    $(function () {
        // $('.nav li').removeClass('on');
        // $('.nav .course').addClass('on');
        // album
        var album = new Swiper('#album', {
            slidesPerView: 'auto'
        });
        $("#content").on("click", ".prev", function () {
            album.swipePrev();
        });
        $("#content").on("click", ".next", function () {
            album.swipeNext();
        });
        $("#content").on("click", "#album .image img", function () {
            $("#content .show_image img").attr("src", $(this).attr("src"));
        });
        // 雷达图
        var dom = document.getElementById("chart");
        var myChart = echarts.init(dom);
        var app = {};
        var option = null;
        var leida_name = {:json_encode($db['leidatu'])};
        var leida_value = {:json_encode($leidatu_value)};
        option = {
            radar: {
                name: {
                        textStyle: {
                            fontSize: 14,
                            color: '#50617d'
                        }
                    },
                    indicator: leida_name,
                axisLine: {
                    show: false
                },
                splitLine: {
                    lineStyle: {
                        color: '#f6f6f6'
                    }
                },
                splitArea: {
                    areaStyle: {
                        color: ['#d8e38e', '#d0e79e', '#e6eaac', '#e2f0c4', '#fdf6db']
                    }
                }
            },
            series: [{
                type: 'radar',
                data: [{
                    value: leida_value,
                    itemStyle: {
                        opacity: 0
                    },
                    lineStyle: {
                        color: '#f78811'
                    },
                    areaStyle: {
                        normal: {
                            opacity: 1,
                            color: new echarts.graphic.RadialGradient(0.5, 0, 1, [{
                                color: 'rgba(247,141,15,0.2)',
                                offset: 1
                            }])
                        }
                    }
                }]
            }]
        };
        if (option && typeof option === "object") {
            myChart.setOption(option, true);
        }
        var course_content = new Swiper('#course_content', {
            mode: 'vertical',
            slidesPerView: 'auto',
            freeMode: true,
            momentumBounce: false,
            mousewheelControl: true,
        });
        $("#content .times_list li").eq(0).addClass("on");
        $("#content").on("click", ".times_list li", function () {
            var index = $(this).prevAll().length;
            course_content.swipeTo(index);
            $(this).addClass("on").siblings("li").removeClass("on");
        })
        $("#course_content").on("mousewheel", function () {
            var index = course_content.activeIndex;
            if (index != $("#content .times_list li.on").prevAll().length) {
                $("#content .times_list li").removeClass("on").eq(index).addClass("on");
            }
        })
        $("#content").on("click", ".anchor a", function () {
            var id = $(this).attr("id");
            $("html,body").animate({
                scrollTop: $("#anchor" + id).offset().top - 82
            }, 500)
            return false
        });

        $('#myform').submit(function () {
            var myreg=/^.{2,5}$/;
            if (!myreg.test($('#name').val())) {
                alert("请输入姓名");
                return false;
            }
            myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
            if (!myreg.test($('#tel').val())) {
                alert("请输入正确的手机号");
                return false;
            }
            /*myreg=/^.{4}$/;
            if (!myreg.test($('#info_code').val())) {
                alert("请输入正确的验证码");
                return false;
            }*/
            $.post("/apply6.html",$("#myform").serialize(),function(result){
                alert(result.code);
            },'json');
            return  false;
        });
    });
</script>
{/block}
{block name='script'}
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/reset.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/teacher.css" />
{/block}